public class Student {  
    private String name;  
    private Computer computer;  
  
    public Student(String name, Computer computer) {  
        this.name = name;  
        this.computer = computer;  
    }  
  
    // Getter 方法  
    public String getName() {  
        return name;  
    }  
  
    public Computer getComputer() {  
        return computer;  
    }  
  
    // 打印学生信息及其电脑配置  
    public void printInfo() {  
        System.out.println("Student Name: " + name);  
        computer.printConfiguration();  
    }  
}